package com.xm.xmds1705083.web.controller;

import com.xm.xm.dto.ResultDto;
import com.xm.xm.dto.SearchDto;
import com.xm.xmds1705083.service.service.DuoduoAreaService;
import com.xm.xmds1705083.web.base.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 杭州新苗网络科技有限公司
 *
 * @author meihf
 * @create 2017/6/15
 * @description
 */
@Controller
@RequestMapping("/area")
public class AreaController extends BaseController{

    @Autowired
    DuoduoAreaService duoduoAreaService;

    /**
     * 根据id去获取区域名称
     */
    @ResponseBody
    @RequestMapping("/findById")
    public ResultDto findById(@RequestBody SearchDto searchDto){
        return duoduoAreaService.findById(searchDto);
    }
}
